package com.paradogs.demo.logic.exceptions;

import com.paradogs.framework.core.annoations.exception.PRExceptionHandler;
import com.paradogs.framework.core.annoations.exception.PRExceptionHandlerClass;
import lombok.extern.slf4j.Slf4j;

/**
 * @author: yumi
 * @date: 2023/8/2  11:06
 * @Description: TODO
 */
@Slf4j
@PRExceptionHandlerClass
public class GobalExceptionHandler {

    @PRExceptionHandler(Exception.class)
    public void handleException(Exception e) {
        log.info("{}", e);
    }

//    @PdgExceptionHandler(SerializationException.class)
//    public void handleSerializationException(SerializationException e) {
//        log.info("yumi !! 序列化异常 !!");
//    }

}
